using SQLServices.Log;

namespace SQLLog4net.Log
{
	public class ItemLog : IItemLog
	{

		#region Private Instances

		private EventType _type;
		private string _name;
		private string _error;
		private IPathItem _path;

		#endregion
		#region Constructors

		public ItemLog(EventType type, string name, string error):
			this(type, name, error, null){}

		public ItemLog(EventType type, string name, string error, IPathItem path)
		{
			_type = type;
			_name = name;
			_error = error;
			_path = path;
		}	

		#endregion
		#region Properties

		public EventType Type
		{
			get { return _type; }
		}

		public string Name
		{
			get { return _name; }
		}

		public string Error
		{
			get { return _error; }
		}

		public IPathItem Path
		{
			get { return _path; }
		}

		#endregion

	}
}